home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _F152D291E48B49FA833B30AC1DD65BA9 < prev    next >
Encoding:
Text File  |  2004-07-20  |  3.2 KB  |  147 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $BFUNC
  6. // $SORTW
  7. // $CULLING
  8.  
  9. shader()
  10. {
  11.     ShaderQuality(3)
  12.     pass()
  13.     {
  14.         Lighting()
  15.         Pixelshader("CarB_Cd_ps11.psh")
  16.         Vertexshader("CarB_Cd_ps11.vsh")
  17.         
  18.         !include("__tex1.mtt")
  19.         !include("__Dirt.mtt")
  20.         !include("__TerrainColormapVS.mtt")
  21.         !include("__CloudsVS.mtt")
  22.  
  23.         !include("__LightningDiffuseOnly.mtt")
  24.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // RGB - lights state, A - dirt level
  25.         !include(BFUNC)
  26.     }
  27.     sortweight(SORTW)
  28.     Cull(CULLING)
  29. }
  30.  
  31.  
  32. shader()
  33. {
  34.     ShaderQuality(1)
  35.     pass()
  36.     {
  37.         //Lighting()
  38.         Pixelshader("CarB__ps11.psh")
  39.         Vertexshader("CarB__ps11.vsh")
  40.  
  41.         !include("__tex1.mtt")
  42.         !include("__Dirt.mtt")
  43.         !include("__TerrainColormapSmallVS.mtt")
  44.  
  45.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  46.         !include(BFUNC)
  47.     }
  48.     sortweight(SORTW)
  49.     Cull(CULLING)
  50. }
  51.  
  52. //=========================== GF2 ======================================
  53. shader()
  54. {
  55.     ShaderQuality(2)
  56.  
  57.     pass()
  58.     {
  59.         Lighting()
  60.         tmu()
  61.         {
  62.             TexGen("planar")
  63.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  64.             texture()
  65.             {
  66.                 Image(%colortexturesmall)
  67.                 addressfunc("clamp", "clamp", "clamp")
  68.             }
  69.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  70.             AlphaOp("arg1", "texture_a", "current", "current")
  71.         }
  72.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  73.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  74.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  75.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  76.         SpecularPow(0.0)
  77.                
  78.     }
  79.     lightpass()
  80.     !include("spot_spotmap.mtt")
  81.  
  82.     pass()
  83.     {
  84.         tmu()
  85.         {
  86.             Texture()
  87.             {
  88.                 Mapchannel(0)
  89.                 Image(DIRT_GF2)
  90.                 !include(DIRTOPTIONSFILE)
  91.             }
  92.             ColorOp("arg1", "tfactor", "current", "current")
  93.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  94.         }
  95.         tmu()
  96.         {
  97.             Texture()
  98.             {
  99.                 Mapchannel(0)
  100.                 Image(TEXTURE1)
  101.                 !include(TEX1OPTIONSFILE)
  102.             }
  103.             ColorOp("blend_current_alpha", "current", "texture", "current")
  104.         }
  105.  
  106.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  107.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  108.    
  109.         BlendFunc("zero", "src_color")
  110.     }
  111.  
  112.     Cull(CULLING)
  113. }
  114. //=======================================================
  115. /*
  116. shader()
  117. {
  118.     ShaderQuality(0)
  119.     pass()
  120.     {
  121.         Lighting()
  122.         Pixelshader("Common.psh")
  123.         Vertexshader("Common.vsh")
  124.         !include("__tex1.mtt")
  125.     }
  126.     sortweight(SORTW)
  127.     Cull(CULLING)
  128. }
  129. */
  130. shader()
  131. {
  132.     ShaderQuality(0)
  133.     pass()
  134.     {
  135.         Lighting()
  136.         !include("__tex1.mtt")
  137.         !include("__LightningColorsGF2.mtt")  
  138.     }
  139. //   lightpass()
  140. //    !include("spot_spotmap.mtt")
  141.     
  142.     sortweight(SORTW)
  143.     Cull(CULLING)
  144. }
  145.  
  146.  
  147.